package com.cn.web.user.vo;

import com.cn.empty.EmptyCheck;
import com.cn.pass.PassCheck;
import com.cn.validate.decode.JsonSerializerDecode;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * description: UserLoginDTO <br>
 * date: 21.12.14 13:45 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@ToString
@Accessors(chain = true)
@ApiModel(value = "子账号登录实体信息")
public class UserLoginByRAMDTO {

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "登录账号格式错误", max = 50)
    @ApiModelProperty(value = "登录账号")
    private String userName;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "密码格式错误", max = 20)
    @ApiModelProperty(value = "密码")
    private String passWord;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "验证码不能为空", max = 6)
    @ApiModelProperty(value = "验证码")
    private String code;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "参数不能为空", max = 50)
    @ApiModelProperty(value = "验证码")
    private String randomKey;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @ApiModelProperty(value = "0-外部用户账号 1-内部管理员账号")
    private String accountType;

}
